# 辅助工具插件Makefile

CC = gcc
CFLAGS = -Wall -Wextra -fPIC -g -O2 -D_GNU_SOURCE
LDFLAGS = -shared -ldl -pthread -lssl -lcrypto
INCLUDE_DIR = ../../include

# 源文件
SRC = plugin.c helper_impl.c

# 目标文件
TARGET = plugin.so

# 构建规则
all: $(TARGET)

$(TARGET): $(SRC)
	$(CC) $(CFLAGS) -I$(INCLUDE_DIR) $(LDFLAGS) -o $@ $(SRC)
	@echo "已构建辅助工具插件: $@"

clean:
	rm -f $(TARGET)
	@echo "已清理辅助工具插件"

.PHONY: all clean 